Azure App Service
App Service Overview:
Azure App Service is a fully managed platform for building, deploying, and scaling
web apps. It supports multiple programming languages, provides automatic scaling, and integrates with other Azure
services.
Key Features:
- Web Apps: Host and scale web applications in the programming language of
your choice.
- Mobile Apps: Build and host mobile backends with support for authentication,
offline sync, and push notifications.
- API Apps: Create, host, and consume APIs with ease.
- Integration: Easily integrate with Azure DevOps, Azure Monitor, and other Azure
services.
App Service Configuration Examples:
1. Creating a Web App in the Azure Portal:
- Go to the Azure Portal.
- Click on "Create a resource" > "Web + Mobile" > "Web App."
- Configure settings like subscription, resource group, app name, runtime stack, and region.
- Set up additional configuration options like deployment slots, authentication, and monitoring.
- Review and create the Web App.
2. Deploying a Web App from GitHub:
- Link your Web App to a GitHub repository.
- Configure deployment options, such as branch and manual/auto deployment.
- Changes in the GitHub repository trigger automatic deployments to the Web App.
3. Configuring Authentication and Authorization:
Enable authentication with Azure Active Directory or other identity providers. Configure authorization rules for
different parts of your application.
4. Scaling App Service Plan:
az appservice plan update --name MyPlan --resource-group MyResourceGroup --number-of-workers 3
5. Setting Environment Variables:
az webapp config appsettings set --name MyWebApp --resource-group MyResourceGroup --settings MySetting=Value